using System;

using Gtk;

namespace Gazebo.Core
{
    [System.ComponentModel.ToolboxItem(true)]
    public partial class GeneralPreferencePane : Gtk.Bin, IPreferencePane
    {
    	
    	string IPreferencePane.Path {
    	    get { return "/General"; }
    	}
    	
    	Widget IPreferencePane.PaneWidget {
    	    get { return this; }
    	}
        
        public GeneralPreferencePane()
        {
            this.Build();
            
            soundsCheck.Active = CorePreferences.Instance.PlaySounds;
        }
        
    	void IPreferencePane.Apply ()
    	{
            CorePreferences.Instance.PlaySounds = soundsCheck.Active;
            CorePreferences.Instance.Save();
    	}
    }
}
